package net.xinqushi.exceptions;

/**
 * @author xjie 2019/9/10 17:16
 * @description  CatchException  先子类后父类
 */
public class CatchException {

    public static void main(String[] args) {

        try {
            int a = 1/0;
        }
        catch (ArithmeticException e){
            System.out.println(56767);
        }
        catch (Exception e){
            System.out.println(123123);
        }
    }
}
